<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<body>
<!---------------- 添加商品标签 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3>
                <i class="icon iconfont">{$Think.session.currentMenu.icon}</i>分类编辑
                <div class="operation-div">
                </div>
            </h3>
            <div class="inner-section row">
                <div id="content">
                	<form action="#" method="post" id="myForm"  enctype="multipart/form-data">
                        <table class="table table-striped table-hover table-bordered table-base">
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>分类名称</label></td>
                                <td class="td2"><input type="text" class="form-control" id="name" name="name" placeholder="分类名称" value="{$cateInfo.name}"></td>
                                <td class="td3"></td>
                            </tr>

                            <tr>
                                <td><label for="imgurl"><span>&nbsp;&nbsp;</span>分类图片</label></td>
                                <td>
                                	<input type="hidden" name="prevurl" value="{$cateInfo.img_url}">
                                    <!---是否重新上传图片标识 0未更新，1更新图片-->
                                    <input type="hidden" id="imgFlag" name="imgFlag" value="0">
                                    <input class="imgurl form-control"  accept="image/*" title="支持jpg、jpeg、gif、png格式，文件小于5M" tabindex="3" type="file" id="imgurl" name="imgurl" size="3">
                                    <img src="../../{$cateInfo.thumb}" height="30"/>
                                    &nbsp;&nbsp;图片建议尺寸：宽度640px
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><label for="icon"><span>&nbsp;&nbsp;</span>小图标</label></td>
                                <td>
                                	<input type="hidden" name="icon_prevurl" value="{$cateInfo.icon}">
                                    <!---是否重新上传图片标识 0未更新，1更新图片-->
                                    <input type="hidden" id="icon_imgFlag" name="icon_imgFlag" value="0">
                                    <input class="icon form-control"  accept="image/*" title="支持jpg、jpeg、gif、png格式，文件小于5M" tabindex="3" type="file" id="icon" name="icon" size="3">
                                    <img src="../../{$cateInfo.icon}" height="30"/>
                                    &nbsp;&nbsp;图片建议尺寸：宽度100px*100px
                                </td>
                                <td></td>
                            </tr>
                            <tr class="hidden">
                                <td><label for="is_use"><span class="must-tag">&nbsp;&nbsp;</span>是否启用</label></td>
                                <td>
                                    <label><input type="radio" name="is_use" class="is_use" value="1" {if $cateInfo.is_use eq '1'}checked{/if}>启用&nbsp;&nbsp;</label>
                                    <label><input type="radio" name="is_use" class="is_use" value="0" {if $cateInfo.is_use eq '0'}checked{/if}>不启用&nbsp;&nbsp;</label>
                                </td>
                            </tr>
                            <tr>
                            	<td><label for="order_index"><span class="must-tag">*</span>排序系数</label></td>
                            	<td class="td2"><input type="text" class="form-control" id="order_index" name="order_index" placeholder="排序系数" value="{$cateInfo.order_index|default='0'}"></td>
                                <td class="td3"></td>
                            </tr>
                            <tr>
                                <td><label><span class="must-tag">&nbsp;&nbsp;</span>绑定商品</label></td>
                                <td>
                                    <div class="select-goods-area"><a data-toggle="modal" class="btn btn-primary btn-sm select-goods" href="../StoreLabel/showBindGoods" data-target="#bindLabelDialog">选择商品</a></div>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>

                                </td>
                                <td>
                                    <input type="hidden" name="id" id="id" value="{$id}">
                                    <input type="hidden" name="rank" id="rank" value="{$rank}">
                                    <input type="hidden" name="gids" id="gids" value="{$cateInfo.gids}">
                                    <a class="btn btn-success btn-md" id='save'>提交</a>
                                    <a class="btn btn-default btn-md" href="javascript:window.history.go(-1);">返回</a>
                                </td>
                                <td></td>
                            </tr>
                        </table>

                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
<!--选择商品、添加标签-->
<div class="modal fade" id="bindLabelDialog"  tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">


        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- 页脚 -->
{include file="common/page/footer"}

<!-- jsfiles -->
{include file="common/page/jsfiles"}
<!--表单验证插件-->
<script type="text/javascript" src="__static__/js/form/jquery.form.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.js"></script>
<script type="text/javascript" src="__static__/js/form/jquery.validate.extend.js"></script>
<script type="text/javascript" src="__app__/admin/view/{$cate}/editCategory/editCategory.js"></script>
</body>
</html>